package com.ssh.cp.idao;

import java.util.List;

import com.ssh.cp.entity.User;


public interface IUserDao {
	public void addUser(User user);
	
	public List<?> loginUser(User user);
	
	public List<?> listUser();
	
	public void updateUser(User user);
	
	public void forbidUser(int theuserid,int forbid);
	
	public boolean existUserName(String username);
	
	public boolean checkRole(int userid);
	
	public boolean checkPassword(int userid,String password);
	
	public boolean changePassword(int userid,String newpassword);
}
